package com.atguigu.canal;

import com.atguigu.canal.client.CanelClient;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @Author zhaolie
 * @Date 2021/1/6 9:13 上午
 * @Version 1.0
 * @Description
 */

@SpringBootApplication
public class CanalApplication implements CommandLineRunner {


    @Resource
    private CanelClient client;

    public static void main(String[] args) {
        SpringApplication.run(CanalApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        client.run();
    }
}
